package com.xunk.common.core.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.common.core.config
 * @ClassName: WeatherConfig
 * @Author: tangguangyuan
 * @Description: 获取天气配置类
 * @Date: 2021/5/18 18:39
 * @Version: 1.0
 */
@Configuration
public class WeatherConfig {
    //高德API调用key
    private static String amapKey;
    //高德获取天气地址
    private static String amapUrl;


    @Value("${amap.key}")
    public void setAmapKey(String amapKey) {
        this.amapKey = amapKey;
    }

    @Value("${amap.weather-url}")
    public void setAmapUrl(String amapUrl) {
        this.amapUrl = amapUrl;
    }

    public static String getAmapKey() {
        return amapKey;
    }

    public static String getAmapUrl() {
        return amapUrl;
    }
}
